<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>GSWS - 欢迎页面</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            line-height: 1.6;
        }

        .container {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 40px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
            max-width: 600px;
            width: 100%;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .header {
            text-align: center;
            margin-bottom: 30px;
        }

        h1 {
            color: #2d3748;
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 10px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .subtitle {
            color: #718096;
            font-size: 1.1rem;
            font-style: normal;
            margin-bottom: 30px;
        }

        .content {
            margin-bottom: 30px;
        }

        .content p {
            color: #4a5568;
            margin-bottom: 15px;
            font-size: 1rem;
        }

        .config-section {
            background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
            padding: 25px;
            border-radius: 15px;
            margin: 25px 0;
            border: 1px solid #e2e8f0;
        }

        .config-title {
            color: #2d3748;
            font-weight: 600;
            margin-bottom: 15px;
            font-size: 1.1rem;
        }

        .config-box {
            background: #ffffff;
            padding: 20px;
            border-radius: 10px;
            font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
            font-size: 0.9rem;
            border: 1px solid #cbd5e0;
            color: #2d3748;
            line-height: 1.5;
            white-space: pre-wrap;
        }

        .version {
            background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
            padding: 20px;
            border-radius: 15px;
            margin: 25px 0;
            border: 1px solid #9ae6b4;
        }

        .version p {
            color: #22543d;
            margin-bottom: 5px;
            font-weight: 500;
        }

        .link {
            text-align: center;
            margin-top: 30px;
        }

        .btn {
            display: inline-block;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            text-decoration: none;
            padding: 15px 30px;
            border-radius: 50px;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
            text-decoration: none;
        }

        .icon {
            font-size: 1.2em;
            margin-right: 8px;
        }

        @media (max-width: 768px) {
            .container {
                padding: 30px 20px;
            }

            h1 {
                font-size: 2rem;
            }

            .subtitle {
                font-size: 1rem;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>🎉 恭喜！GSWS 已成功启动！</h1>
            <p class="subtitle">Congratulations! GSWS has successfully started!</p>
        </div>

        <div class="content">
            <p>📁 你可以在 GSWS 二进制文件的同目录下找到 <strong>config.json</strong> 来配置 GSWS</p>
            <p>📁 You can find <strong>config.json</strong> in the same directory as the GSWS binary to configure GSWS</p>

            <p>🔄 你可以通过删除 <strong>config.json</strong> 后再次启动 GSWS 来重置配置</p>
            <p>🔄 You can reset <strong>config.json</strong> by deleting it and restarting GSWS</p>
        </div>

        <div class="config-section">
            <div class="config-title">📋 配置文件格式 / Config File Format</div>
            <div class="config-box">{
  "static_folder": "static",
  "not_found_page": "404.html",
  "host": "127.0.0.1",
  "port": "8080"
}</div>
        </div>

        <div class="content">
            <p>🌐 将 <strong>host</strong> 设置为 <code>"0.0.0.0"</code> 以允许其他计算机连接</p>
            <p>🌐 Set <strong>host</strong> to <code>"0.0.0.0"</code> to allow other computers to connect</p>
        </div>

        <div class="version">
            <p>🚀 当前版本: {{.VersionString}}</p>
            <p>🚀 Current version: {{.VersionString}}</p>
        </div>

        <div class="link">
            <a href='https://gsws.gxj62.cn/' class="btn">
                <span class="icon">🌍</span>访问 GSWS 项目主页
            </a>
        </div>
    </div>
</body>
</html>